Skip to content

Add many ensureStillAliveHere scopes for good measure - #1649

Merged
justinmichaud merged 1 commit into
WebPlatformForEmbedded:wpe-2.38from
justinmichaud:eng/wpebackport-ensure-still-alive
Aug 1, 2026
Merged

Add many ensureStillAliveHere scopes for good measure#1649
justinmichaud merged 1 commit into
WebPlatformForEmbedded:wpe-2.38from
justinmichaud:eng/wpebackport-ensure-still-alive

Conversation

@justinmichaud

@justinmichaud justinmichaud commented Apr 17, 2026

Copy link
Copy Markdown

See WebKit/WebKit#62985

This pattern crops up a bunch:

JSCell* a = ...

call(a->something())

So a can die before call, and that is completely valid, but
something() returns a pointer that is kept alive by a.

This patch fixes a bunch of these cases.
0822b5b

Build-Tests Layout-Tests
✅ 🛠 wpe-238-amd64-build ✅ 🧪 wpe-238-amd64-layout
✅ 🛠 wpe-238-arm32-build ✅ 🧪 wpe-238-arm32-layout

@justinmichaud

Copy link
Copy Markdown
Author

Let's land this anyway, since it can't hurt, but I was not able to find an example of this actually being needed in the current production binary.

@justinmichaud

Copy link
Copy Markdown
Author

This patch has zero risk of breaking runtime, so I will land it.

@justinmichaud
justinmichaud merged commit 45a4abb into WebPlatformForEmbedded:wpe-2.38 Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants